package com.xueyi.aixihu.pattern;

import java.util.HashMap;
import java.util.Map;

/**
 * 描述
 * @author 刘梓江
 */
public class CheckOperationReportRoleStrategyDirector {

    public static Map<Integer,CheckOperationReportRoleStrategy> roleStrategyMap=new HashMap<>();
    {
        roleStrategyMap.put(2,TownCheckOperationReportRoleStrategy.getInstance());
        roleStrategyMap.put(3,VillageCheckOperationReportRoleStrategy.getInstance());
        roleStrategyMap.put(16,CommunityCheckOperationReportRoleStrategy.getInstance());
        roleStrategyMap.put(4,CommunityCheckOperationReportRoleStrategy.getInstance());
    }

    public CheckOperationReportRoleStrategy getRoleStrategy(Integer reportType){
        return  roleStrategyMap.get(reportType);
    }
}
